﻿using PmSoft;
using System.ComponentModel.DataAnnotations;
using static Modules.Project.ProjectConstants;

namespace ManagementApi.Models.System.User
{
    /// <summary>
    /// 用户表单对象
    /// </summary>
    public class UserEditForm
    {
        /// <summary>
        ///  用户ID 
        ///</summary>
        [Display(Name = "用户ID")]
        public int UserId { get; set; }

        /// <summary>
        /// 身份证号码
        ///</summary>
        [Display(Name = "身份证号码")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string? Cardno { get; set; }

        /// <summary>
        /// 姓名 
        ///</summary>
        [Display(Name = "姓名")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string? Name { get; set; }

        /// <summary>
        /// 性别 1：男2：女 
        ///</summary>
        [Display(Name = "性别")]
        [Required(ErrorMessage = "{0}不能为空")]
        public byte? Gender { get; set; }

        /// <summary>
        /// 手机号码 
        ///</summary>
        [Display(Name = "手机号码")]
        public string? Mobile { get; set; }

        /// <summary>
        /// 电子邮箱 
        ///</summary>
        [Display(Name = "电子邮箱")]
        public string? Email { get; set; }

        /// <summary>
        /// 归属部门ID 
        ///</summary>
        [Display(Name = "归属部门ID")]
        public int? DeptId { get; set; }

        /// <summary>
        /// 角色Id集合,多个用逗号隔开
        /// </summary>
        [Display(Name = "角色Id集合,多个用逗号隔开")]
        [Required(ErrorMessage = "{0}不能为空")]
        public int[] RoleIds { get; set; }

        /// <summary>
        /// 状态 1：正常，2:离岗,3：封禁 
        ///</summary>
        [Display(Name = "状态")]
        [Required(ErrorMessage = "{0}不能为空")]
        public byte Status { get; set; }

        /// <summary>
        /// 归属省代码
        /// </summary>
        [Display(Name = "归属省代码")]
        public int? ProvinceCode { get; set; }

        /// <summary>
        /// 归属地市代码
        /// </summary>
        [Display(Name = "归属地市代码")]
        public int? CityCode { get; set; }

        /// <summary>
        /// 归属区县代码
        /// </summary>
        [Display(Name = "归属区县代码")]
        public int? AreaCode { get; set; }
        ///// <summary>
        ///// 行业分类
        ///// </summary>
        //[Display(Name = "行业分类")]
        //public 行业主管部门? IndustryType { get; set; }

        /// <summary>
        /// 区域Id
        /// </summary>
        [Display(Name = "区域Id")]
        public int? AreaId { get; set; }

    }
}
